<template>
  <div>
    <div>
      <el-button type="success" @click="openDetail">创建任务</el-button>
    </div>
    <div>
      <el-table :data="tableData">
        <el-table-column prop="taskStatus" label="任务状态" width="180"></el-table-column>
        <el-table-column prop="taskType" label="任务类型" width="180"></el-table-column>
        <el-table-column prop="taskName" label="任务描述" width="180"></el-table-column>
        <el-table-column prop="handleUserNo" label="处理人员" width="180"></el-table-column>
        <el-table-column prop="handleMemo" label="处理备注" width="180"></el-table-column>
        <el-table-column prop="taskStartTime" label="创建日期" width="180"></el-table-column>
        <el-table-column prop="taskEndTime" label="结束日期" width="180"></el-table-column>
        <el-table-column label="操作" fixed="right">
          <template v-slot="scope">
            <el-button @click="edit(scope.row)" type="primary" size="mini">编辑</el-button>
          </template>
        </el-table-column>
      </el-table>
    </div>
    <ConsultModal ref="consultRef"></ConsultModal>
  </div>
</template>

<script lang="ts" setup>
const visible = ref(false)
import ConsultModal from "./consult/modal.vue";

const consultRef = ref()

const tableData = ref([
  {}
])
const props = defineProps({
  orderData: {
    type: Object,
    required: true,
  },

});

const openDetail = function () {
  // if (props.orderData.businessType == '协商') {
  //   consultRef.value.open(props.orderData)
  // }
  consultRef.value.open(props.orderData)
}
</script>

<style lang="scss" scoped>

</style>
